<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>修改列表</h1>
<form th:action="@{/supplier/update}" method="POST">
    <input name="id" type="hidden" th:value="${supplierContact.id}">
    <p>
        联系人姓名：<input name="cname" type="text" th:value="${supplierContact.cname}">
    </p>
    <p>
        联系人年龄：<input name="age" type="text" th:value="${supplierContact.age}">
    </p>
    <p>
        手机号：<input name="mobile" type="text" th:value="${supplierContact.mobile}">
    </p>
    <p>
        创建日期：<input name="createdate" type="date"
                        th:value="${#dates.format(supplierContact.createdate,'yyyy-MM-dd')}"/>
    </p>
    <p>
        所属供应商：
        <select name="pid">
            <option th:each="all : ${all}" th:selected="${all.id == supplierContact.id}"
                    th:text="${all.sname}" th:value="${all.id}">
            </option>
        </select>
    </p>
    <p>
        <input type="submit" value="修改">
    </p>
</form>

</body>
<script type="text/javascript" src="/js/jquery.js"></script>
<script>

</script>
</html>